Global Variables
The following global variables are available globally.
-
A failure
Result
returningerror
The default error is an empty one so thatfailure()
is legal To assign this to a variable, you must explicitly give a type. Otherwise the compiler has no idea whatT
is. This form is preferred to Result.Failure(error) because it provides a useful default. For example: let fail: Result= failure() Dictionary keys for default errors
Declaration
Swift
public let ErrorFileKey = "LMErrorFile"
-
Undocumented